package com.zsc.shixun.model.collect;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 收藏夹更改VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Data
public class CollectUpdateVO {

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "必须填id")
//    @NotBlank(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "收藏夹名称")
    @NotNull(message = "必须填收藏夹名称")
    @NotBlank(message = "收藏夹名称不能为空")
    private String name;

    @ApiModelProperty(value = "收藏夹描述简介")
    private String content;


    @ApiModelProperty(value = "是否公开,默认为1，1为公开，0为私密（自己看）")
    @NotNull(message = "必须填是否公开")
//    @NotBlank(message = "是否公开不能为空")
    private Boolean isShow;

    @ApiModelProperty(value = "用户id,关联b_user.id")
    private Long userId;

}
